package com.hui.stock.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author: ymh
 * @date: 2024/12/2 15:20
 * @description:定义股票相关的值对象封装
 */
@ApiModel(description = "定义股票相关的值对象封装")
@Data
@ConfigurationProperties(prefix = "stock")
// @Component 后期如果不使用这个bean，会浪费内存资源
public class StockInfoConfig {
    /**
     * 国内A股大盘编码集合
     */
    @ApiModelProperty(value = "国内A股大盘编码集合", position = 1)
    private List<String> inner;

    /**
     * 外盘编码集合
     */
    @ApiModelProperty(value = "外盘编码集合", position = 2)
    private List<String> outer;
    /**
     * 股票涨跌区间集合
     */
    @ApiModelProperty(value = "股票涨跌区间集合", position = 3)
    private List<String> upDownRange;
    /**
     * 大盘 外盘 个股的公共url
     */
    @ApiModelProperty(value = "大盘 外盘 个股的公共url", position = 4)
    private String marketUrl;
    /**
     * 板块采集url
     */
    @ApiModelProperty(value = "板块采集url", position = 5)
    private String blockUrl;
}
